package com.yang.designmode.Authentication;

/**
 * 负责URL的拼接和解析
 */
public class ApiRequest {
    private String baseUrl;
    private String appId;
    private String token;
    private long timestamp;


    public ApiRequest(String baseUrl, String appId, String token, long timestamp) {
        this.baseUrl = baseUrl;
        this.appId = appId;
        this.token = token;
        this.timestamp = timestamp;
    }

    public static ApiRequest createFromFullUrl(String fullUrl){
        return null;
    }

    public String getBaseUrl(){
        return baseUrl;
    }

    public String getAppId(){
        return appId;
    }

    public String getToken(){
        return token;
    }

    public long getTimestamp(){
        return timestamp;
    }
}
